import api from '../utils/axios'
import qs from 'qs'

import dataUtil from '../utils/dataUtil'

export default {

    /*获取学校列表*/
    getJournalCssciList: function (option) {
        option = dataUtil.formatApiOption(option)
        return api.post('api/v1/datasets/1042', option).then((resp) => {
            return Promise.resolve(dataUtil.formatTableData(resp.data,option.pageNumber ,option.pageSize))
        })
    },

    /*获取指定学校ID信息*/
    getJournalCssciInfoById(id) {
        let option = {
            id: id
        }
        option = dataUtil.formatApiOption(option)
        return api.post('api/v1/datasets/1042', option).then((resp) => {
            return Promise.resolve(dataUtil.formatTableData(resp.data).data[0])
        })
    },


}
